<template>
    <div id="received">
        <van-nav-bar title="待收货"  left-arrow @click-left="onClickLeft"/>
        <div class="goods">
            <div class="list">
                <div v-for="item in list" :key="item.id">
                    <div class="border"></div>
                    <div class="succeed">交易成功</div>
                    <van-card
                    :num="item.num"
                    :price="item.price"
                    :desc="item.size"  
                    :title="item.title"
                    :thumb="item.imgs"
                    >
                
                    <div slot="footer">
                        <span class="total">总价为: ￥{{item.price*item.num}}</span>
                        <van-button size="mini" plain hairline type="danger" @click="onRecieve">确认收货</van-button>
                    </div>
                    </van-card>
                 </div>
            </div>
        </div>
    </div>
</template>

<script>

export default {
    name : "beshipped",
    data(){
        return {
            list:[
                {
                    id: '001',
                    num: 2,
                    price: 699.00,
                    size: '商品尺码',
                    title: '商品名称',
                    imgs: '../../../static/img/goodsdemo.jpg'
                },
                {
                    id: '002',
                    num: 2,
                    price: 699.00,
                    size: '商品尺码',
                    title: '商品名称',
                    imgs: '../../../static/img/goodsdemo.jpg'
                }
            ]
        }
    },
    methods:{
        onClickLeft() {
            this.$router.push({path:'/mine'});
        },
        onRecieve (){
            this.$router.push({path: '/toevaluate'});
        }
    }
}
</script>
<style scoped  lang="">
.van-nav-bar .van-icon,.van-nav-bar__title {
    color:white;
}
#received{
    margin-top: 1.466667rem;
}
.van-nav-bar {
    background-color: #ff6341;
	position: fixed;
    width: 100%;
    height: 1.226667rem;
    top: 0;
    left: 0;
}
.succeed{
    width: 100%;
    height: .533333rem;
    text-align: right;
}
.goods,.list{
    margin-top: .4rem;
}
.border {
    margin-top: .133333rem;
    height: 2px;
    background: repeating-linear-gradient(-45deg, #ff6c6c 0, #ff6c6c 20%, transparent 0, transparent 25%, #1989fa 0, #1989fa 45%, transparent 0, transparent 50%);
    background-size: 2.666667rem;
    margin-bottom: .133333rem;
}
</style>
